package com.wxq.demo.service;

import com.wxq.demo.dao.BookDao;
import com.wxq.demo.pojo.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookService {
    @Autowired
    private BookDao bookDao;

    public Book getMaxidBook() {
        return bookDao.getMaxIdBook();
    }
}
